package com.bigevent.controller;

import com.bigevent.pojo.Result;
import com.bigevent.service.ArticleServiece;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/article")
public class ArticleController {
    /*@GetMapping("/list")
    public Result<String> list(*//*@RequestHeader(name = "Authorization") String token, HttpServletResponse response*//*) {
        // 验证token
        *//*try {
            Map<String, Object> claims = JwtUtil.parseToken(token);
            return Result.success("文章列表");
        } catch (Exception e) {
            // http响应状态码为401
            response.setStatus(401);
            return Result.error("未登录");
        }*//*
        return Result.success("文章列表");
    }*/
    @Autowired
    private ArticleServiece articleServiece;

}
